//  Project name: StrikingCars
//  File name   : PhysicSprite.h
//
//  Author      : Phuc, Tran Huu
//  Created date: 12/3/12
//  Version     : 1.00
//  --------------------------------------------------------------
//  Copyright (C) 2012 Phuc, Tran Huu. All Rights Reserved.
//  --------------------------------------------------------------

#import "Box2D.h"


@interface PhysicSprite : CCSprite {

@protected
    b2Body *_body;
    b2Vec2 _centroid;
}

@property (nonatomic, readonly) b2Body *body;
@property (nonatomic, readonly) b2Vec2 centroid;


- (id)initWithWorld:(b2World *)world plistName:(NSString *)plistName imageName:(NSString *)imageName texture:(CCTexture2D *)texture rect:(CGRect)rect;

/**
 * Apply velocity to this sprite
 */
- (void)setLinearVelocity:(b2Vec2)velocity;

@end
